package org.pp.core;


import lombok.Getter;

@Getter
public enum BizErro implements BaseErro {

    /**
     * 错误信息
     * *
     */
    TOKEN_EXPIRE(-2, "登录过期"),
    USER_NOT_FOUND(-2, "用户不存在"),
    FORBID(-3, "权限不足"),
    VERIF_ERRO(-4, "验证码错误"),
    ;

    private String msg = null;
    private Integer code = -1;


    BizErro(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    @Override
    public BizExcept erro() {
        return new BizExcept(this.getCode(), this.getMsg());
    }


}
